package ar.com.listeners;

import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import ar.com.gastos.Agregar_subcategoriaActivity;
import ar.com.gastos.MainActivity;

public class MasSubCategoriaListener implements OnClickListener {

	
	private int id;
	private MainActivity mainActivity;

	public MasSubCategoriaListener(MainActivity mainActivity,
			int MAS_SUBCATEGORIA_LISTENER) {
	
		this.mainActivity =mainActivity;
		this.id = MAS_SUBCATEGORIA_LISTENER;

	}

	
	public void onClick(View v) {

		Intent intent = new Intent(mainActivity,
				 Agregar_subcategoriaActivity.class);
		 
          this.mainActivity.startActivityForResult(intent, this.id);
          
	
	}

}
